﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class InnerMessageDispatcher : AMessageDispatcher
    {
        public override void Dispatcher(Session session, AMessage message)
        {
            if(message != null)
            {
                Game.Scene.GetComponent<MessageDispatcherComponent>().Handle(session, message);
                return;
            }
            Log.Error($"消息错误:{message.GetType().FullName}");
        }
    }
}
